package com.hgyc.mom.eam.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.hgyc.mom.common.annotation.Excel;
import com.hgyc.mom.core.mybatis.EQ;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 设备维修报告
 * </p>
 *
 * @author fwj
 * @since 2025-08-19
 */
@Data
@TableName("eam_equipment_repair_report")
@Schema(name="设备维修报告对象", description="设备维修报告对象")
public class EamEquipmentRepairReport implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "计划ID")
    private Long id;

    @EQ
    @Schema(description = "维修单ID")
    private Long repairId;

    @Excel(name = "故障描述")
    @Schema(description = "故障描述")
    private String breakdownDescription;

    @Excel(name = "故障部位")
    @Schema(description = "故障部位")
    private String breakdownPart;

    @Excel(name = "故障原因")
    @Schema(description = "故障原因")
    private String breakdownReason;

    @Excel(name = "维修方法")
    @Schema(description = "维修方法")
    private String repairMethod;

    @Excel(name = "预防建议")
    @Schema(description = "预防建议")
    private String suggestion;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建者")
    private Long createBy;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新者")
    private Long updateBy;

    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

}
